﻿using System;
using System.Collections.Generic;
using System.Text;

namespace TypeSample
{
   public class Student
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public Student(int id, string name)
        {
            this.Id = id;
            this.Name = name;
        }
        public void Print()
        {
            Console.WriteLine($"{Id}  姓名:{Name}");
        }
    }
}
